﻿using System;
using System.Collections.Generic;
using System.Text;
using VWise_DAO;

namespace VWISE_Tester
{
  class MainProgram
  {
    static void Main(string[] args)
    {
      CVWise_DAO_Access pDAO_Access = new CVWise_DAO_Access();

      string szDateTime;
      pDAO_Access.Configure();
      szDateTime = "2012-12-19 23:50:00";
      pDAO_Access.iPKCodeToConsult = 1;
      pDAO_Access.bRegister = true;
      pDAO_Access.szPuertaAcceso = "PUERTA Z";
      pDAO_Access.dtRegisterDateTime = DateTime.Parse(szDateTime);
      pDAO_Access.QueryPersonalByIdentifier();


      //CPersonalManager pManager = new CPersonalManager();
      //CPersonal pPersonal;
      //pManager.szConnectionString = "Server=FOXVIRTUAL02;Database=VWISE_DHL;User Id=sa;Password=root;";

      //pPersonal = pManager.GetPersonalByID(2);

      //List<CMarkRegister> pListMarks = pManager.SearchMarks(pPersonal, "2012-12-14", "2012-12-14");

      //int iresult = pManager.RegisterPersonalMark(pPersonal, "PUERTA D");

      //CVehicleManager pVehicleManager = new CVehicleManager();
      //CVehicle pVehicle;
      //pVehicleManager.szConnectionString = "Server=FOXVIRTUAL02;Database=VWISE_DHL;User Id=sa;Password=root;"; 
      
      
      //pVehicle = pVehicleManager.GetVehicleByID(2);

      //pListMarks = pVehicleManager.SearchMarks(pVehicle, "2012-12-15", "2012-12-15");

      //iresult = pVehicleManager.RegisterVehicleMark(pVehicle, "PUERTA Z");
    }
  }
}
